import {request} from '@/utils/request.js'

// 送货单扫码详情
export function deliveryDetailEwm(id) {
  return request.net({
    url: `/hnt/delivery/Ewm/${id}`,
    method: 'GET',
	type: 1,
	showLoading: true,
	loadingText: '加载中...'
  })
}
// 原材料检测扫码详情
export function MaterialcheckDetail(id) {
  return request.net({
    url: `/productionManagement/MaterialcheckDetail/ewm?id=${id}`,
    method: 'GET',
	type: 1,
	showLoading: true,
	loadingText: '加载中...'
  })
}
// 设计配合比扫码详情
export function CoordinationDetail(id) {
  return request.net({
    url: `/productionManagement/CoordinationDetail/ewm?id=${id}`,
    method: 'GET',
	type: 1,
	showLoading: true,
	loadingText: '加载中...'
  })
}
// 抗压强度表扫码详情
export function CompressiveDetail(id) {
  return request.net({
    url: `/productionManagement/CompressiveDetail/ewm?id=${id}`,
    method: 'GET',
	type: 1,
	showLoading: true,
	loadingText: '加载中...'
  })
}
// 抗折强度表扫码详情
export function ResistanceDetail(id) {
  return request.net({
    url: `/productionManagement/ResistanceDetail/ewm?id=${id}`,
    method: 'GET',
	type: 1,
	showLoading: true,
	loadingText: '加载中...'
  })
}
// 抗渗强度表扫码详情
export function ImpermeabilityDetail(id) {
  return request.net({
    url: `/productionManagement/ImpermeabilityDetail/ewm?id=${id}`,
    method: 'GET',
	type: 1,
	showLoading: true,
	loadingText: '加载中...'
  })
}
// 评定强度表扫码详情
export function StrengthDetail(id) {
  return request.net({
    url: `/productionManagement/StrengthDetail/ewm?id=${id}`,
    method: 'GET',
	type: 1,
	showLoading: true,
	loadingText: '加载中...'
  })
}
// 出厂合格证扫码详情
export function FactorycertificateDetail(id) {
  return request.net({
    url: `/productionManagement/FactorycertificateDetail/ewm?id=${id}`,
    method: 'GET',
	type: 1,
	showLoading: true,
	loadingText: '加载中...'
  })
}
// 确认收货
export function deliveryConfirm(data) {
  return request.net({
    url: `/hnt/delivery`,
    method: 'PUT',
	data: data,
	showLoading: true,
	loadingText: '正在提交...'
  })
}
// 消息列表
export function msgList(data) {
  return request.net({
    url: `/home/msg/list`,
    method: 'GET',
	data: data,
	showLoading: true,
	loadingText: '加载中...'
  })
}
// 消息已读
export function msgread(data) {
  return request.net({
    url: `/home/msg/read`,
    method: 'POST',
	data: data
  })
}
// 实名认证列表
export function personInfoList(data) {
  return request.net({
    url: `/realname/personInfo/list`,
    method: 'GET',
	data: data,
	showLoading: true,
	loadingText: '加载中...'
  })
}
// 编辑认证信息
export function personInfoEdit(data) {
  return request.net({
    url: `/realname/personInfo`,
    method: 'PUT',
	data: data,
	showLoading: true,
	loadingText: '正在提交...'
  })
}
// 附件上传
export function upLoad(data) {
  console.log(data,'上传')
  return request.file({
    url: `/system/oss/compress/upload`,
    data: data,
    showLoading: true,
    loadingText: '正在上传...'
  })
}
// 意见反馈
export function feedbackAdd(data) {
  return request.net({
    url: `/xcx/opinion`,
    method: 'POST',
	data: data,
	showLoading: true,
	loadingText: '正在提交...'
  })
}
// 项目整改记录列表
export function rectifyNoticeList(data) {
  return request.net({
    url: `/enterprise/rectifyNotice/list/xcx`,
    method: 'GET',
	data: data,
	showLoading: true,
	loadingText: '加载中...'
  })
}
// 项目整改记录详情
export function rectifyNoticeDetail(id) {
  return request.net({
    url: `/enterprise/rectifyNotice/${id}/xcx`,
    method: 'GET',
	showLoading: true,
	loadingText: '加载中...'
  })
}
// 新增整改记录
export function rectifyNoticeAdd(data) {
  return request.net({
    url: `/enterprise/rectifyNotice/xcx`,
    method: 'POST',
	data: data,
	showLoading: true,
	loadingText: '正在提交...'
  })
}
//混凝土统计
export function deliverycount(data) {
  return request.net({
    url: `/hnt/delivery/count`,
    method: 'GET',
	data: data
  })
}
// 混凝土列表
export function deliveryList(data) {
  return request.net({
    url: `/hnt/delivery/list`,
    method: 'GET',
	data: data,
	showLoading: true,
	loadingText: '加载中...'
  })
}